home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-02 | 2.7 KB | 93 lines | [TEXT/MPS ] |
- #ifndef __CYBERDOWNLOADEXTENSION__
- #define __CYBERDOWNLOADEXTENSION__
-
- #include "CyberExtension.idl"
- #include "CyberMisc.idl"
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface CyberDownloadExtension;
-
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface CyberItem;
- interface ODFrame;
- interface ODPart;
-
-
- //==============================================================================
- // Types
- //==============================================================================
-
- #pragma somemittypes off
- typedef somToken CyberDownloadCompletionUPP;
-
- #pragma somemittypes on
- typedef long CDDownloadRequestID;
- const CDDownloadRequestID kCDAllDownloadRequests = -1;
-
- //==============================================================================
- // DownloadExtension
- //==============================================================================
-
-
- interface CyberDownloadExtension : CyberExtension
- {
- /*---------------------------------------------------------------------
- // two ways of posting download requests
- // call as many of these as you like as many times as you like
- -----------------------------------------------------------------------*/
-
- CDDownloadRequestID DownloadCyberItem(in CyberItem item, in FSSpecPtr spec);
-
- CDDownloadRequestID PostDownloadRequest(
- in CyberItem item,
- in FSSpecPtr destSpec,
- in ODBoolean decomp,
- in CyberDownloadCompletionUPP completionProc,
- in Ptr completionProcData);
-
-
- /*---------------------------------------------------------------------
- // call this to cancel one or all requests
- // id= kCDAllDownloadRequests means cancel all requests
- -----------------------------------------------------------------------*/
-
- void CancelRequest(in CDDownloadRequestID id);
-
- /*---------------------------------------------------------------------
- // call this after specifying what to download,
- // it opens the window (if wanted) and gets thing going
- -----------------------------------------------------------------------*/
-
- void StartDownloads(in ODBoolean openWindow);
-
-
- #ifdef __SOMIDL__
- implementation
- {
- functionprefix = CyberDownloadExtension__;
-
- releaseorder:
- DownloadCyberItem,
- PostDownloadRequest,
- CancelRequest,
- StartDownloads,
-
-
- majorversion = 1; minorversion = 0;
-
- passthru C_xh = ""
- "#include \"CyberdogProcPtrs.h\""
- "";
- };
- #endif //__SOMIDL__
- };
-
- #endif // __CYBERDOWNLOADEXTENSION__
-